Tangoe ServiceNow API

(0 reviews)

Exceptions and Errors

Few examples on distinct types of error API server (that may generate) are stated below. The section also covers the corresponding reason for the exceptions.

Unauthorized Exception

HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
  "error": {
    "detail": "Required to provide Auth information",
    "message": "User Not Authenticated"
  },
    "status": "failure"
}

Reason: Invalid username and password was used to login to the API server or user is not authorized to access the URI.

Bad Request Exception

HTTP/1.1 400 Bad Request
Content-Type: application/json
{
  "error": {
    "detail": "Negative offset is not supported",
    "message": "offset is -1"
  },
  "status": "failure"
}

Reason: Invalid query params or request body was sent to the API server and the API server was unable to process the request._

Forbidden Exception

HTTP/1.1 403 Forbidden
Content-Type: application/json
{
  "error": {
    "detail": "Failed API level ACL Validation",
    "message": "User Not Authorized"
  },
  "status": "failure"
}

Reason: The username used to call the API, does not have valid ACL to access the API. Please contact your Tangoe Support Team if you need further assistance with these exceptions.


Reviews